Skip to content

feat(tui): add fresh session restart command#591

Open
aaronflorey wants to merge 1 commit intoasheshgoplani:mainfrom
aaronflorey:feature/restart-fresh-session
Open

feat(tui): add fresh session restart command#591
aaronflorey wants to merge 1 commit intoasheshgoplani:mainfrom
aaronflorey:feature/restart-fresh-session

Conversation

@aaronflorey
Copy link
Copy Markdown
Contributor

Summary

  • add a separate T hotkey and TUI help copy to restart the highlighted local session with a fresh tool session ID
  • keep the existing R restart flow unchanged so resume-based restarts still work as before
  • clear stored session bindings before fresh restart and cover the new behavior with session and UI tests

Testing

  • make fmt
  • TMPDIR=\"$PWD/.tmp/go-tmp\" GOCACHE=\"$PWD/.tmp/go-cache\" go test ./internal/session -run 'TestInstance_(CanRestartFresh|ClearSessionBindingForFreshStart)$'
  • TMPDIR=\"$PWD/.tmp/go-tmp\" GOCACHE=\"$PWD/.tmp/go-cache\" go test ./internal/ui -run 'TestRenderHelpBarMinimalWithFreshRestartableSession|TestRestartSessionFreshCmdSessionMissingReturnsError|TestResolveHotkeysOverridesAndUnbinds|TestCSIuReaderAllShiftHotkeys'
  • make test was attempted but the environment's /tmp tmpfs was full, so the full suite could not complete in this workspace

Notes

  • no documentation changes were needed because this is a TUI-only command addition

Add a separate TUI action that restarts the highlighted session without reusing its stored tool session ID.

Keep the existing restart-with-resume flow intact while making it easy to intentionally start over from the same project context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant